<p>&nbsp;</p>
<?php echo validation_errors(); ?>
<form action="<?php echo base_url() . "admin/index/update"; ?>" method="post">
    <div>
        <label for="txt-page">Category</label> 
        <select id="txt-page" name="page">
        	<option value="">------</option>
        	<option value="news" <?php echo set_select('page', 'news'); ?>>Berita</option>
        	<option value="home" <?php echo set_select('page', 'home'); ?>>Headline</option>
        </select>
        * Isi jenis kategori artikel disini.
    </div>
    <div>
        <label for="txt-judul_url">URL Title</label>
        <input id="txt-judul_url" name="judul_url" type="text" value="<?php echo (!empty($berita['judul_url']) ? $berita['judul_url'] : ""); ?>" /> * URL untuk halaman article nya. TIDAK boleh ada spasi.
    </div>
    <div>
        <label for="txt-judul">Judul Artikel</label>
        <input id="txt-judul" name="judul" type="text" value="<?php echo (!empty($berita['judul']) ? $berita['judul'] : ""); ?>" /> * Judul artikel yang anda ingin pakai.
    </div>
    <div>
    	<p>&nbsp;</p>
        <label for="txt-synopsis"><strong>Sypnosis</strong><br />Isi sypnosis yang akan di tampilkan.</label>
        <textarea id="txt-synopsis" name="synopsis" ><?php echo (!empty($berita['synopsis']) ? $berita['synopsis'] : ""); ?></textarea>
        <?php
        $data['id'] = "txt-synopsis";
//        $data['config'] = array("toolbar" => array(array('Source', '-', 'Bold', 'Italic', 'Underline', 'Strike','-','Link', '-', 'MyButton')));
        echo createInstance($data);
        ?>
    </div>
    <div>
    	<p>&nbsp;</p>
        <label for="txt-isi"><strong>Isi Artikel</strong></label>
        <textarea id="txt-isi" name="isi" ><?php echo (!empty($berita['isi']) ? $berita['isi'] : ""); ?></textarea>
        <?php
        $data['id'] = "txt-isi";
//        $data['config'] = array("toolbar" => array(array('Source', '-', 'Bold', 'Italic', 'Underline', 'Strike','-','Link', '-', 'MyButton')));
        echo createInstance($data);
        ?>
    </div>
    <?php
    if (!empty($berita['id'])) {
        ?>
        <input type="hidden" name="id" value="<?php echo $berita['id']; ?>" />
        <?php
    }
    ?>
    <div class="submit">
        <input type="submit" name="submit" value="<?php echo (!empty($berita['id']) ? "Update" : "Insert") ?>" />
    </div>
</form>
<p>&nbsp;</p>